package com.smallbug.longman.bean;

import java.util.ArrayList;
import java.util.Iterator;

public class Subsense {
	public String sensenum;
	public String DEF;
	public String SenseId;

	public ArrayList<EXAMPLE> Examples;

	public String getSensenum() {
		return sensenum;
	}

	public void setSensenum(String sensenum) {
		this.sensenum = sensenum;
	}

	public String getDEF() {
		return DEF;
	}

	public void setDEF(String DEF) {
		this.DEF = DEF;
	}

	public String getSenseId() {
		return SenseId;
	}

	public void setSenseId(String senseId) {
		SenseId = senseId;
	}

	public ArrayList<EXAMPLE> getExamples() {
		return Examples;
	}

	public void setExamples(ArrayList<EXAMPLE> examples) {
		Examples = examples;
	}

	public void print()
	{
		System.out.println(DEF);
		EXAMPLE example = null;
		if(Examples != null)
		{
			Iterator iter = Examples.iterator();
			while (iter.hasNext()) {
				example = (EXAMPLE)iter.next();
				example.print();
			}
		}

		
	}

	@Override
	public String toString() {
		return "Subsense{" +
				"sensenum='" + sensenum + '\'' +
				", DEF='" + DEF + '\'' +
				", SenseId='" + SenseId + '\'' +
				", Examples=" + Examples +
				'}';
	}
}

